package qldc.pm.tienan.utils.saoluuphuchoi;

import qldc.pm.tienan.utils.saoluudulieu.objects.BienBanBanGiaoHoSoJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.CongViecBanGiaoJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.DoiTuongTienAnJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.KetQuaTrichLucJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.LichSuXoaAnTichJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.PhieuThongTinVeNguoiCoTienAnJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.TEMP_DoiTuongTienAnJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.TEMP_PhieuThongTinVeNguoiCoTienAnJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.TEMP_TienAnJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.TangThuJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.TienAnJAXB;
import qldc.pm.tienan.utils.saoluudulieu.objects.YeuCauTrichLucJAXB;
import qldc.pm.tienan.model.BienBanBanGiaoHoSo;
import qldc.pm.tienan.model.CongViecBanGiao;
import qldc.pm.tienan.model.DoiTuongTienAn;
import qldc.pm.tienan.model.KetQuaTrichLuc;
import qldc.pm.tienan.model.LichSuXoaAnTich;
import qldc.pm.tienan.model.PhieuThongTinVeNguoiCoTienAn;
import qldc.pm.tienan.model.TEMP_DoiTuongTienAn;
import qldc.pm.tienan.model.TEMP_PhieuThongTinVeNguoiCoTienAn;
import qldc.pm.tienan.model.TEMP_TienAn;
import qldc.pm.tienan.model.TangThu;
import qldc.pm.tienan.model.TienAn;
import qldc.pm.tienan.model.YeuCauTrichLuc;


public class PhucHoiUtils {

public static BienBanBanGiaoHoSo convertFormBienBanBanGiaoHoSoToJAXB(BienBanBanGiaoHoSoJAXB  c,
		BienBanBanGiaoHoSo cn) {
	cn.setBienBanBanGiaoHoSoId(c.getBienBanBanGiaoHoSoId());
	cn.setChucVu(c.getChucVu());
	cn.setChucVuNguoiDuocBanGiao(c.getChucVuNguoiDuocBanGiao());
	cn.setDiaDiemBanGiao(c.getDiaDiemBanGiao());
	cn.setKinhGui(c.getKinhGui());
	cn.setNgayBanGiao(c.getNgayBanGiao());
	cn.setNgayLap(c.getNgayLap());
	cn.setNguoiDuocBanGiao(c.getNguoiDuocBanGiao());
	cn.setNguoiLap(c.getNguoiLap());
	cn.setNoiDung(c.getNoiDung());
	return cn;
}


public static CongViecBanGiao convertFormCongViecBanGiaoToJAXB(CongViecBanGiaoJAXB c,
		CongViecBanGiao cn) {
	cn.setCongViecBanGiaoId(c.getCongViecBanGiaoId());
	cn.setBienBanBanGiaoHoSoId(c.getBienBanBanGiaoHoSoId());
	cn.setChuThich(c.getChuThich());
	cn.setTenCongViec(c.getTenCongViec());
	cn.setTienDoThucHien(c.getTienDoThucHien());
	return cn;
}

public static DoiTuongTienAn convertFormDoiTuongTienAnToJAXB(DoiTuongTienAnJAXB c,
		DoiTuongTienAn cn) {
	cn.setDoiTuongTienAnId(c.getDoiTuongTienAnId());
	cn.setCreateDate(c.getCreateDate());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setSoDinhDanhCaNhan(c.getSoDinhDanhCaNhan());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	cn.setXoaAnTich(c.isXoaAnTich());
	
	return cn;
}

public static KetQuaTrichLuc convertFormKetQuaTrichLucToJAXB(KetQuaTrichLucJAXB c,
		KetQuaTrichLuc cn) {
	cn.setKetQuaTrichLucId(c.getKetQuaTrichLucId());
	cn.setHinhPhatBoSung(c.getHinhPhatBoSung());
	cn.setHinhPhatChinh(c.getHinhPhatChinh());
	cn.setKetQua(c.getKetQua());
	cn.setKetQuaTrichLucId(c.getKetQuaTrichLucId());
	cn.setKinhGui(c.getKinhGui());
	cn.setMaKetQuaTrichLuc(c.getMaKetQuaTrichLuc());
	cn.setNgayTraCuu(c.getNgayTraCuu());
	cn.setNguoiTraCuuHoSo(c.getNguoiTraCuuHoSo());
	cn.setThongTinAnTich(c.getThongTinAnTich());
	cn.setTinhTrangAnTich(c.getTrinhTrangThiHanhAn());
	cn.setToiDanh(c.getToiDanh());
	cn.setTrinhTrangThiHanhAn(c.getTrinhTrangThiHanhAn());
	cn.setYeuCauTrichLucId(c.getYeuCauTrichLucId());
	return cn;
}

public static LichSuXoaAnTich convertFormLichSuXoaAnTichToJAXB(LichSuXoaAnTichJAXB c,
		LichSuXoaAnTich cn) {
	cn.setLichSuXoaAnTichId(c.getLichSuXoaAnTichId());
	cn.setChuThich(c.getChuThich());
	cn.setCoQuanThiHanhAn(c.getCoQuanThiHanhAn());
	cn.setHinhPhat(c.getHinhPhat());
	cn.setHoVaTenDoiTuongTienAn(c.getHoVaTenDoiTuongTienAn());
	cn.setKinhGui(c.getKinhGui());
	cn.setLichSuXoaAnTichId(c.getLichSuXoaAnTichId());
	cn.setMaHoSoXoaAnTich(c.getMaHoSoXoaAnTich());
	cn.setNgayKyDuyetXoaAnTich(c.getNgayKyDuyetXoaAnTich());
	cn.setNgayLapHoSoXoaAnTich(c.getNgayLapHoSoXoaAnTich());
	cn.setNgayQuyetDinhThiHanhAn(c.getNgayQuyetDinhThiHanhAn());
	cn.setNgayYeuCauXoaAnTich(c.getNgayYeuCauXoaAnTich());
	cn.setNguoiLapHoSoXoaAnTichId(c.getNguoiLapHoSoXoaAnTichId());
	cn.setNguoiThucHienXoaAnTichTrongDuLieuID(c.getNguoiThucHienXoaAnTichTrongDuLieuID());
	cn.setNguoiYeuCauXoaAnTich(c.getNguoiYeuCauXoaAnTich());
	cn.setSoQuyetDinhThiHanhAn(c.getSoQuyetDinhThiHanhAn());
	cn.setTienAnId(c.getTienAnId());
	return cn;
}

public static PhieuThongTinVeNguoiCoTienAn convertFormPhieuThongTinVeNguoiCoTienAnToJAXB(PhieuThongTinVeNguoiCoTienAnJAXB c,
		PhieuThongTinVeNguoiCoTienAn cn) {
	cn.setPhieuThongTinVeNguoiCoTienAnId(c.getPhieuThongTinVeNguoiCoTienAnId());
	cn.setChuThich(c.getChuThich());
	cn.setCreateDate(c.getCreateDate());
	cn.setHoTenCha(c.getHoTenCha());
	cn.setHoTenMe(c.getHoTenMe());
	cn.setHoTenVoHoacChong(c.getHoTenVoHoacChong());
	cn.setMaSoHoSoTienAnTuToaAn(c.getMaSoHoSoTienAnTuToaAn());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setNguoiTrichLuc(c.getNguoiTrichLuc());
	cn.setNoiTamTruDiaChi(c.getNoiTamTruDiaChi());
	cn.setNoiThuongTruDiaChi(c.getNoiThuongTruDiaChi());
	cn.setPhieuThongTinVeNguoiCoTienAnId(c.getPhieuThongTinVeNguoiCoTienAnId());
	cn.setSoDinhDanhCaNhan(c.getSoDinhDanhCaNhan());
	cn.setThamPhan(c.getThamPhan());
	cn.setTienAnId(c.getTienAnId());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	
	return cn;
}

public static TangThu convertFormTangThuToJAXB(TangThuJAXB c,
		TangThu cn) {
	cn.setTangThuId(c.getTangThuId());
	cn.setChuThich(c.getChuThich());
	cn.setCreateDate(c.getCreateDate());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setTangThuId(c.getTangThuId());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	cn.setDiaChiThuongTru(c.getDiaChiThuongTru());
	cn.setDiaChiThuongTruPhuongXaId(c.getDiaChiThuongTruPhuongXaId());
	cn.setDiaChiThuongTruQuanHuyenId(c.getDiaChiThuongTruQuanHuyenId());
	cn.setDiaChiThuongTruTinhId(c.getDiaChiThuongTruTinhId());
	cn.setDoiTuongTienAnId(c.getDoiTuongTienAnId());
	cn.setHoVaTenNguoiCoTienAn(c.getHoVaTenNguoiCoTienAn());
	cn.setLapMoi(c.isLapMoi());
	cn.setNgayLuu(c.getNgayLuu());
	cn.setSoSoHoKhau(c.getSoSoHoKhau());
	cn.setViTriLuu(c.getViTriLuu());
	
	return cn;
}

public static TEMP_DoiTuongTienAn convertFormTEMP_DoiTuongTienAnToJAXB(TEMP_DoiTuongTienAnJAXB c,
		TEMP_DoiTuongTienAn cn) {
	cn.setDoiTuongTienAnId(c.getDoiTuongTienAnId());
	cn.setCreateDate(c.getCreateDate());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setSoDinhDanhCaNhan(c.getSoDinhDanhCaNhan());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	cn.setXoaAnTich(c.isXoaAnTich());
	cn.setThaoTac(c.getThaoTac());
	cn.setUndoRedo(c.getUndoRedo());
	cn.setMainDoiTuongTienAnId(c.getMainDoiTuongTienAnId());
	return cn;
}

public static TEMP_PhieuThongTinVeNguoiCoTienAn convertFormTEMP_PhieuThongTinVeNguoiCoTienAnToJAXB(TEMP_PhieuThongTinVeNguoiCoTienAnJAXB c,
		TEMP_PhieuThongTinVeNguoiCoTienAn cn) {
	cn.setPhieuThongTinVeNguoiCoTienAnId(c.getPhieuThongTinVeNguoiCoTienAnId());
	cn.setChuThich(c.getChuThich());
	cn.setCreateDate(c.getCreateDate());
	cn.setHoTenCha(c.getHoTenCha());
	cn.setHoTenMe(c.getHoTenMe());
	cn.setHoTenVoHoacChong(c.getHoTenVoHoacChong());
	cn.setMaSoHoSoTienAnTuToaAn(c.getMaSoHoSoTienAnTuToaAn());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setNguoiTrichLuc(c.getNguoiTrichLuc());
	cn.setNoiTamTruDiaChi(c.getNoiTamTruDiaChi());
	cn.setNoiThuongTruDiaChi(c.getNoiThuongTruDiaChi());
	cn.setPhieuThongTinVeNguoiCoTienAnId(c.getPhieuThongTinVeNguoiCoTienAnId());
	cn.setSoDinhDanhCaNhan(c.getSoDinhDanhCaNhan());
	cn.setThamPhan(c.getThamPhan());
	cn.setTienAnId(c.getTienAnId());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	return cn;
}

public static TEMP_TienAn convertFormTEMP_TienAnToJAXB(TEMP_TienAnJAXB c,
		TEMP_TienAn cn) {
	cn.setTienAnId(c.getTienAnId());
	cn.setChuThich(c.getChuThich());
	cn.setCreateDate(c.getCreateDate());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	cn.setAnPhi(c.getAnPhi());
	cn.setBanAnSo(c.getBanAnSo());
	cn.setChuThich(c.getChuThich());
	cn.setDoiTuongTienAnId(c.getDoiTuongTienAnId());
	cn.setHinhPhatBoSung(c.getHinhPhatBoSung());
	cn.setHinhPhatChinh(c.getHinhPhatChinh());
	cn.setMainTienAnId(c.getMainTienAnId());
	cn.setMoTaTienAn(c.getMoTaTienAn());
	cn.setNgayPhamToi(c.getNgayPhamToi());
	cn.setNgayToaAn(c.getNgayToaAn());
	cn.setNghiaVuDanSu(c.getNghiaVuDanSu());
	cn.setThaoTac(c.getThaoTac());
	cn.setToaAnXuPhat(c.getToaAnXuPhat());
	cn.setToiDanh(c.getToiDanh());
	cn.setUndoRedo(c.getUndoRedo());
	cn.setXoaAnTich(c.isXoaAnTich());
	return cn;
}

public static TienAn convertFormTienAnToJAXB(TienAnJAXB c, 
		TienAn cn) {
	cn.setTienAnId(c.getTienAnId());
	cn.setChuThich(c.getChuThich());
	cn.setCreateDate(c.getCreateDate());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	cn.setAnPhi(c.getAnPhi());
	cn.setBanAnSo(c.getBanAnSo());
	cn.setChuThich(c.getChuThich());
	cn.setDoiTuongTienAnId(c.getDoiTuongTienAnId());
	cn.setHinhPhatBoSung(c.getHinhPhatBoSung());
	cn.setHinhPhatChinh(c.getHinhPhatChinh());
	cn.setMoTaTienAn(c.getMoTaTienAn());
	cn.setNgayPhamToi(c.getNgayPhamToi());
	cn.setNgayToaAn(c.getNgayToaAn());
	cn.setNghiaVuDanSu(c.getNghiaVuDanSu());
	cn.setToaAnXuPhat(c.getToaAnXuPhat());
	cn.setToiDanh(c.getToiDanh());
	cn.setXoaAnTich(c.isXoaAnTich());
	return cn;
}

public static YeuCauTrichLuc convertFormYeuCauTrichLucToJAXB(YeuCauTrichLucJAXB c,
		YeuCauTrichLuc cn) {
	cn.setYeuCauTrichLucId(c.getYeuCauTrichLucId());
	cn.setChuThich(c.getChuThich());
	cn.setCreateDate(c.getCreateDate());
	cn.setModifiedDate(c.getModifiedDate());
	cn.setUserId(c.getUserId());
	cn.setUserName(c.getUserName());
	cn.setChuThich(c.getChuThich());
	cn.setCoQuanYeuCauTrichLuc(c.getCoQuanYeuCauTrichLuc());
	cn.setDanTocId(c.getDanTocId());
	cn.setDaTrichLuc(c.isDaTrichLuc());
	cn.setGioiTinh(c.getGioiTinh());
	cn.setHoTenVoHoacChong(c.getHoTenVoHoacChong());
	cn.setHoVaTenCha(c.getHoVaTenCha());
	cn.setHoVaTenDoiTuongTrichLuc(c.getHoVaTenDoiTuongTrichLuc());
	cn.setHoVaTenGoiKhac(c.getHoVaTenGoiKhac());
	cn.setHoVaTenMe(c.getHoVaTenMe());
	cn.setHoVaTenNguoiYeuCauTrichLuc(c.getHoVaTenNguoiYeuCauTrichLuc());
	cn.setKinhGui(c.getKinhGui());
	cn.setMaYeuCauTrichLuc(c.getMaYeuCauTrichLuc());
	cn.setYeuCauTrichLucId(c.getYeuCauTrichLucId());
	cn.setSoSoHoKhauDoiTuongTrichLuc(c.getSoSoHoKhauDoiTuongTrichLuc());
	cn.setSoHoChieuDoiTuongTrichLuc(c.getSoHoChieuDoiTuongTrichLuc());
	cn.setSoDinhDanhCaNhanDoiTuongTrichLuc(c.getSoDinhDanhCaNhanDoiTuongTrichLuc());
	cn.setSoCMNDDoiTuongTrichLuc(c.getSoCMNDDoiTuongTrichLuc());
	cn.setQuocTich(c.getQuocTich());
	cn.setNoiThuongTruDoiTuongTrichLucTinhId(c.getNoiThuongTruDoiTuongTrichLucTinhId());
	cn.setNoiThuongTruDoiTuongTrichLucDiaChi(c.getNoiThuongTruDoiTuongTrichLucDiaChi());
	cn.setNoiThuongTruDoiTuongTrichLucPhuongXaId(c.getNoiThuongTruDoiTuongTrichLucPhuongXaId());
	cn.setNoiThuongTruDoiTuongTrichLucQuanHuyenId(c.getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
	cn.setNoiTamTruDoiTuongTrichLucTinhId(c.getNoiTamTruDoiTuongTrichLucTinhId());
	cn.setNoiTamTruDoiTuongTrichLucDiaChi(c.getNoiTamTruDoiTuongTrichLucDiaChi());
	cn.setNoiTamTruDoiTuongTrichLucPhuongXaId(c.getNoiTamTruDoiTuongTrichLucPhuongXaId());
	cn.setNoiTamTruDoiTuongTrichLucQuanHuyenId(c.getNoiTamTruDoiTuongTrichLucQuanHuyenId());
	cn.setNoiSinh(c.getNoiSinh());
	cn.setNgayCapCMNDDoiTuongTrichLuc(c.getNgayCapCMNDDoiTuongTrichLuc());
	cn.setNgayCapHoChieuDoiTuongTrichLuc(c.getNgayCapHoChieuDoiTuongTrichLuc());
	cn.setNoiDungTrichLuc(c.getNoiDungTrichLuc());
	return cn;
}
}
